var Global = {
    Author: '蜂巢',
    Website: 'http://www.51inews.com',
    Title: '掌上中考客户端',
    loadingText: '努力加载中...',
	expectText: '该功能正在内测中，暂不对外开放',
    emptyText: '网络异常，请稍后再试'
};

Ext.Loader.setConfig({
    enabled: true
});

Ext.application({
    name: 'App',
    title: '掌上中考',
    
    // requires: ['Inews.util.Proxy'],
    
    controllers: ['Review', 'Answer', 'Guide', 'News', 'Eat', 'Article', "SplashScreen", "School", "Setting"],
    models: ['News', 'NewsDetail', 'Setting', 'Article', "Subject", "School", "Teacher", "Score"],
    stores: ['Review', 'Answer', 'Guide', 'News', 'NewsDetail', 'Eat', 'Setting', 'Article', 'ArticleTitle', "Subjects", "Schools", "Teachers", "States", "Scores"],
    views: ['Main', 'wish.Splash', 'about.About', 'home.Card', 'answer.Card', 'answer.List', 'answer.Info', 'review.Card', 'review.List', 'review.Info', 'guide.Card', 'guide.List', 'guide.Info', 'news.Card', 'news.List', 'news.Info', 'eat.Card', 'eat.List', 'eat.Info', 'article.Card', 'article.List', 'article.Info', 'setting.Card', 'setting.List', 'setting.Info'],
    
    glossOnIcon: false,
    tabletStartupScreen: 'resources/kiva/loading/Homescreen~ipad.jpg',
    phoneStartupScreen: 'resources/kiva/loading/Homescreen.jpg',
    
    viewport: {
        autoMaximize: true
    },
    
    launch: function(){
        Ext.Viewport.setMasked({
            xtype: 'loadmask',
            message: Global.loadingText,
        });
        Ext.Viewport.add({
            xtype: 'main'
        });
        Ext.Viewport.setMasked(false);
    }
    
});
